"""
Utility functions for mesh optimization
""" 